package com.feihong.txgw.ui.activity.kaika;

import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.webkit.JavascriptInterface;

import com.blankj.utilcode.util.LogUtils;
import com.just.agentweb.AgentWeb;

/**
 * @name txgw_app
 * @class name：com.feihong.txgw.ui.activity.kaika
 * @class describe:
 * @author wangziheng
 * @time 2017/9/22 13:56
 * @change
 * @chang time
 * @class describe
 */
class KaikaNewPackageInterface {

    private AgentWeb mAgentWeb;
    private Context mContext;
    private KaikaNewPackageActivity.NewPackageCallBack mCallBack;

    public KaikaNewPackageInterface(AgentWeb agentWeb, Context context, KaikaNewPackageActivity.NewPackageCallBack callBack){
        mAgentWeb = agentWeb;
        mContext = context;
        mCallBack = callBack;
    }

    private Handler deliver = new Handler(Looper.getMainLooper());

    @JavascriptInterface
    public void Selspec(String packageJson){
        LogUtils.i("通讯顾问 :"+"选择套餐:"+packageJson);
        mCallBack.getPacakgeInfo(packageJson);
    }
}
